package com.harboursoftware.xstorage.unit.results



import com.harboursoftware.xstorage.results.EmptyContentResult 
import org.apache.commons.io.IOUtils;
import org.junit.Test 


class EmptyContentResponseTest {
    @Test
    void test_toInputStream() {
        def response1 = new EmptyContentResult()
        def len1 = IOUtils.toByteArray(response1.getInputStream()).length
        assert len1 == 0
        
        def response2 = new EmptyContentResult()
        def len2 = IOUtils.toByteArray(response2.getInputStream()).length
        assert len2 == 0
    }
}
